<template>
	<view class="goods-bar uni-bg-color-grey">
		<navigator hover-class='none' url="../goods-details/goods-details" class="goods-item-bar ">
			<view class="uni-bg-color">
				<goods-item-bar :imgW='300' :imgH='300' :imgBorder='false' title="老人机老人机老人机老人机老人机" >
					<view class="goods-slot-bar">
						<view class="goods-slot-p uni-font-size-sm">老人机信息老人机信息老人机信息老人机信息</view>
						<view class="goods-slot-base uni-font-size-base">
							<view class="goods-slot-base-l">
								<view class="uni-text-color-active">￥30.00</view>
							</view>
							<icon-bar name='icongouwuche' color='#999' :size='40'></icon-bar>
						</view>
					</view>
				</goods-item-bar>
			</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		name: 'Goods',
		title: '商品列表',
		methods: {
			// 上拉加载
			onReachBottom() {
				if(this.timer != null) {
					clearTimeout(this.timer)
				}
				this.timer = setTimeout( () => {
					console.log(11)
				}, 1000)
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.goods-bar{
		width: 100%;
		padding: 30upx 20upx;
		box-sizing: border-box;
		padding-bottom: 0;
		display: flex;
		flex-wrap: wrap;
		.goods-item-bar{
			width: 50%;
			padding: 0 10upx;
			box-sizing: border-box;
			margin-bottom: 30upx;
			.goods-slot-bar{
				width: 100%;
				.goods-slot-p{
					width: 100%;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
					color: #999;
				}
				.goods-slot-base{
					margin-top: 10upx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					.goods-slot-base-l{
						display: flex;
						align-items: center;
						.goods-slot-base-l-grey{
							font-size: 20upx;
							color: #ccc;
							text-decoration: line-through;
						}
					}
				}
			}
		}
	}
</style>
